{% load custom_tag %}
{% load staticfiles %}

{#<!DOCTYPE html>#}
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>{% block title %}量化回测交易系统{% endblock %}</title>

    {% block head_link %}{% endblock %}
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <link rel="stylesheet" href="{% static '/bower_components/bootstrap/dist/css/bootstrap.min.css' %}">

    <link rel="stylesheet" href="{% static '/bower_components/font-awesome/css/font-awesome.min.css' %}">

    <link rel="stylesheet" href="{% static  '/bower_components/Ionicons/css/ionicons.min.css' %}">

    <link rel="stylesheet" href="{% static  '/plugins/bootstrap-datatable/bootstrap-table.css' %}">

    <link rel="stylesheet" href="{% static  '/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css' %}">

    <link rel="stylesheet" href="{% static '/plugins/iCheck/all.css' %}">

    <link rel="stylesheet" href="{% static '/plugins/bootstrapValidator/bootstrapValidator.min.css' %}">

    <link rel="stylesheet" href="{% static '/plugins/bootstrap-dialog/bootstrap-dialog.min.css' %}">

    <link rel="stylesheet" href="{% static '/dist/css/AdminLTE.min.css' %}">

    <link rel="stylesheet" href="{% static '/plugins/timepicker/bootstrap-timepicker.css' %}">

    <link rel="stylesheet" href="{% static '/dist/css/skins/skin-blue.min.css' %}">

    <link rel="stylesheet" href="{% static '/public.css' %}">

    <link rel="stylesheet" href="{% static '/datetimepicker/bootstrap-datetimepicker.min.css' %}">

    <link rel="stylesheet" href="{% static '/bootstrap-fileinput-master/css/fileinput.min.css' %}">


    <style>
        /*黑底展示*/
        .nav-tabs-custom {
            background-color: black;
        }

        .content-wrapper {
            background-color: black;
        }

        .tab-content {
            background-color: black !important;

        }

        .skin-blue .main-header .navbar {
            background-color: #141414;
        }

        /*黑底展示⬆*/
        /*滑动变色*/

        {#/*table滑动变色*/#}
        {#.table-hover > tbody > tr:hover {#}
        {#    background-color: #31383c;#}
        {# }#}

        /*hft标题滑动变色*/
        .skin-blue .main-header .logo:hover {
            background-color: #31383c;
        }

        /*折叠三竖滑动变色*/
        .skin-blue .main-header .navbar .sidebar-toggle:hover {
            background-color: #31383c;
        }

        /*滑动变色展示⬆*/
        /*默认奇数行显示白色，默认奇数行显示白色，取消此功能*/
        {#tbody > tr {#}
        {#    background-color: black !important;#}
        {##}
        {# }#}

        .table-striped > tbody > tr:nth-of-type(odd) {
            background-color: #131314;

        }

        .table-striped > tbody > tr:nth-of-type(odd).onclickrow {
            background-color: #444444;

        }

        /*默认奇数行显示白色，默认奇数行显示白色，取消此功能⬆*/

        /*去掉多余边框，改变边框颜色*/
        /*框框内部左右两个小的边框*/
        .bootstrap-table .fixed-table-container.fixed-height .fixed-table-border {
            border: 0px !important;
        }

        /*去掉顶部加粗*/
        .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
            border-bottom: 0.01px solid #222 !important;
        }

        .fixed-table-container.fixed-height {
            border: 2px solid #222 !important;
        }

        /*去掉多余边框，改变边框颜色⬆*/


        .btn-group-xs > .btn, .btn-xs {
            padding: 0px 6px;
            font-size: 11px;
            line-height: 1.5;
            border-radius: 3px;
        }

        .table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
            padding: 2px;
            line-height: 1.2;
            vertical-align: top;
            border-top: 0px solid #f4f4f4;
            color: #ffffffc4;
        }


        .skin-blue .main-header .logo {
            background-color: #2b2b2b;
            color: #fff;
            border-bottom: 0 solid transparent;
        }


        .skin-blue .wrapper, .skin-blue .main-sidebar, .skin-blue .left-side {
            background-color: #141414;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        .main-footer {
            background: #000;
            padding: 15px;
            color: #f39c12;
            border-top: 1px solid #000;
        }


        th {
            text-align: center;
        }

        td {
            text-align: center;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        label {
            width: 100px;
            margin-left: 5%;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        /*qb账号*/
        .qb-label {
            width: 60px;
            margin-left: 15%;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        input, select {
            width: 160px;
            height: 24px;
            background: #0F0F0F;
            border: 1px solid #3C3C3C;
            border-radius: 1px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        /* 模态框下的input */
        .opts {
            background-color: white;
            width: 200px;
        }

        form > input {
            width: 160px;
            height: 24px;
            background: #0F0F0F;
            border: 1px solid #3C3C3C;
            border-radius: 1px;
        }

        /* input-file放在同一行 */
        input[type=file] {
            display: inline-block;
            /* cursor: pointer; */
            border: none;
            width: auto;
        }

        button {
            border: none;
        }

        .btn-query {
            width: 87px;
            height: 26px;
            background: #3C3C3C;
            border-radius: 3px;
        }

        .conf {
            border: 0; /*去掉未选中状态边框*/
            outline: none; /*去掉选中状态边框*/
            background-color: rgba(0, 0, 0, 0); /*透明背景*/
        }

        .bootstrap-table {
            border-style: solid;
            border-width: 3px;
            border: 1px solid rgba(0, 0, 0, .15);
        }

        .pagination-info {
            display: none
        }

        .page-list {
            display: none
        }

        .modal-dialog {
            width: 450px;
        }

        .modal-body {
            /* background-color: #282923; */
            padding: 10px 30px;
            height: auto;
        }

        StgFileShow, ConFileShow {
            background-color: #282923;
            color: #90918b;
            border-width: 0px;
            width: 448px;
            height: 100%;
        }

        stg_check {
            padding: 10px;
        }

        .row {
            margin-top: 10px;
        }

        /* tab表头的选中的样式 */
        .nav-tabs-custom > .nav-tabs > li.active > a, .nav-tabs-custom > .nav-tabs > li.active:hover > a {
            background-color: red;
            color: white;
        }

        /* tab样式 */
        .nav-tabs-custom > .nav-tabs > li {
            border-top: transparent;
            margin-bottom: -2px;
            margin-right: 2px;
        }

        .nav-tabs > li {
            float: left;
            margin-bottom: -1px;
        }

        .nav > li > a {
            position: relative;
            display: block;
            padding: 4px 20px;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        /* tab头的位置及边框颜色透明 */
        .nav-tabs-custom > .nav-tabs {
            margin-left: 11px;
            border-bottom-color: rgba(0, 0, 0, 0.2);
            border-top-right-radius: 3px;
            border-top-left-radius: 3px;
        }

        /* tab中的a标签悬浮样式 */
        .nav-tabs-custom > .nav-tabs > li > a, .nav-tabs-custom > .nav-tabs > li > a:hover {
            background: rgba(255, 255, 255, .15);
            margin: 0;
        }

        .nav-tabs-custom > .nav-tabs > li > a {
            color: #d2d6de;
            border-radius: 0;
        }

        .bootstrap-table .fixed-table-container .table {
            width: 100%;
            margin-bottom: 0 !important;
            color: #939393;
        }

        .fixed-table-toolbar {
            background-color: #141414;
        }

        .uploadsearch, .packsearch, .papersearch {
            width: 87px;
            height: 26px;
            background: #3C3C3C;
            border-radius: 3px;

        }

        .upstrategy {
            width: 119px;
            height: 28px;
            background: inherit;
            background-color: rgba(255, 204, 153, 1);
            box-sizing: border-box;
            border-width: 1px;
            border-style: solid;
            border-color: rgba(121, 121, 121, 1);
            border-radius: 5px;
            -moz-box-shadow: none;
            -webkit-box-shadow: none;
            box-shadow: none;
            color: #2B2B2B;
        }

        /* bootstraptable上边框 */
        .table-bordered {
            border: 1px solid transparent !important;
        }

        /* bootstraptable左侧边框 */
        .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th {
            border: 1px solid #1E1E1E;
            background: #1E1E1E;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
            border: 1px solid #1E1E1E;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
            color: #DCDCDC;
        }

        #stcriskinfoTable > thead > tr > td, #stcriskinfoTable > tbody > tr > td {
            border: 1px solid #f5f5f5;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
            color: #939393;
        }

        tr.activetable, input.activetable {
            background-color: white;
            width: 100px;
            height: 30px;
            margin: 1px;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        /*确认页面的table,去掉边框线*/
        tr.confirm_table, input.confirm_table {
            background-color: white;
            width: 100px;
            height: 30px;
            margin: 1px;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
            border-width: 0;
            text-align: center;
        }


        .bootstrap-table .fixed-table-container .table {
            width: 100%;
            margin-bottom: 0 !important;
            color: #939393;
        }

        .fixed-table-toolbar {
            background-color: #141414;
        }


        /* integrated css */
        .tab-content {
            margin-left: 10px;
        }

        .div-query {
            float: left;
            margin-top: 15px;
            margin-left: 10px;
            margin-bottom: 15px;
            color: #ffffff;
        }

        /* 新增按钮格式 */
        .btn-add {
            float: left;
            width: 100px;
            height: 26px;
            /* background: inherit; */
            background-color: rgb(237, 109, 0);
            border-radius: 5px;
            /* box-sizing: border-box;
            border-width: 1px;
            border-style: solid;
            border-color: rgba(121, 121, 121, 1);
            -moz-box-shadow: none;
            -webkit-box-shadow: none;
            box-shadow: none; */
            color: #FBEBE3;
        }

        /*业绩分析按钮颜色*/
        .btn-analysis {
            background-color: rgb(237, 109, 0);
        }

        /*失败原因/打包/申请实盘按钮颜色*/
        .btn-blue {
            background-color: #009AFF;
            color: #fcfd9a;
        }


        /* 查询按钮格式 */
        .btn-query {
            width: 80px;
            height: 26px;
            background: #3C3C3C;
            border-radius: 5px;
        }

        /* 按钮通用属性 */
        .btn-stc {
            border-radius: 5px;
            text-align: center;
            display: table-cell;
            vertical-align: middle;
            cursor: pointer;
        }

        /* 提交按钮 */
        .btn-confirm {
            width: 100px;
            height: 26px;
            background: red;
            color: #ffffff;
        }

        /* 取消按钮 */
        .btn-cancel {
            width: 60px;
            height: 26px;
            background: #3C3C3C;
            color: #ffffff;
        }

        /* 查询面板label格式 */
        .lbl-query {
            margin-left: 30px;
            float: left;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
            color: #cdcdcd;
        }

        /* 订单查询label面板 */
        .order-query {
            margin-left: 15px;
            float: left;
            font-size: 12px;
            font-family: NotoSansCJKsc-Regular, sans-serif;
            color: #cdcdcd;
        }


        /* 查询面板输入框格式 */
        .input-query {
            width: 120px;
        }

        /*环境选择input框*/
        .envir-input-query {
            width: 75px;
        }

        /*清算速度input框*/
        .tid-input-query {
            width: 70px;
        }

        /*方向input框*/
        .direction-input-query {
            width: 45px;
        }

        /*策略ID input框*/
        .id-input-query {
            width: 50px;
        }

        /*债券代码 input 框*/
        .instrid-input-query {
            width: 60px;
        }

        /*历史持仓 日期 input 框*/
        .date-input-query {
            width: 70px;
        }

        .table-stc {
            table-layout: fixed;
            word-break: break-all;
            word-wrap: break-all;
            font-size: 12px;
            width: 100%;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        section {
            margin: 0px 5px 0px 10px;
        }

        /* 操作成功样式 */
        .operat-success {
            margin-top: 25px;
            margin-left: 5px;
            font-size: 18px;
            text-align: center;
        }

        /* 输入框校验失败文字展示 */
        .input-validation {
            color: red;
            margin-left: 122px;
        }

        /* 人工录入错误提示输入框*/
        .error_input {
            color: red;
            margin-left: 132px;
        }

        /* 策略参数输入框错误提示*/
        .input-stgpara {
            color: red;
            margin-left: 40px;
        }

        /* 新建环境输入框错误提示*/
        .input-envir {
            color: red;
            margin-left: 122px;
        }

        /*滚动条样式*/
        div::-webkit-scrollbar {
            width: 4px;
            display: none;
        }

        /*滚动条样式*/
        div::-webkit-scrollbar-thumb {
            border-radius: 20px;
            background: #777;
        }


        /*滚动条样式*/
        div::-webkit-scrollbar-button {
            display: none;
        }

        /*滚动条样式*/
        div::-webkit-scrollbar-track {
            background: #2b2b2b;
        }

        /* 统一修改页面宽高、背景色和字体 */
        body {
            background: #000;
            height: 100%;
            width: 100%;
            font-family: NotoSansCJKsc-Regular, sans-serif;
        }

        /*隐藏浏览器滚动条，但是不影响滑动*/
        body::-webkit-scrollbar {
            width: 0px;
        }

        /*风控信息隐藏浏览器滚动条，但是不影响滑动*/
        #stcriskinfo_id::-webkit-scrollbar {
            width: 0px;
        }

        /*右侧页码样式*/
        .pagination > li > a, .pagination > li > span {
            position: relative;
            float: left;
            padding: 6px 12px;
            margin-left: -1px;
            line-height: 1.42857143;
            color: #ddd;
            text-decoration: none;
            background-color: rgba(0, 0, 0, .0001);
            border: 1px solid rgba(255, 255, 255, .15);
        }

        /*监控页面与ws连接，提示信息样式*/
        /*位置样式*/
        .link-position {
            float: left;
            font-size: 12px;
        }

        /*成功*/
        .link-success {
            color: #42da45;
        }

        /*断开连接*/
        .link-fail {
            color: #ff0000;
        }

        /*尝试重连*/
        .link-reconnect {
            color: #fdf59a;
        }

        /*远程服务断开*/
        .link-tkd {
            color: #FF2358;
        }

        /*远程服务断开*/
        .link-tkc {
            color: #88ff5c;
        }

        /*导出按钮*/
        .export-p {
            margin-top: 13px;
            margin-left: 24px;
            background-color: #009AFF;
        }


        /*加载中 样式*/
        .loa {
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -25px 0px 0px -50px;
            width: 50px;
            height: 50px;
        }

        /*加载中 动图大小*/
        .loadgif {
            width: 50px;
        }


        ul.transul {
            list-style: none;
            height: 81px;
            overflow-y: scroll;
            width: 249px;
            float: right;
            margin-right: 65px;
        }

        li.transli {

        }

        li.transli > label > input {
            width: 10px;
            height: 10px;
        }

        .table-hover > tbody > tr:hover {
            background-color: #444444;
            cursor: pointer;
        }

        /*日期thead样式*/
        .table-condensed > thead {
            background-color: #f4f4f4;
        }

        /*文字样式*/
        .text-title {
            color: white;
        }

        /*主题文字样式*/
        .thmd {
            background-color: #7a7a7a;
        }

        /*主题文字选中样式*/
        .theme-active {
            background-color: #337ab7;
        }

        /*净值曲线和业绩分析*/
        /**标题样式**/
        .box-title {
            color: white;
        }

        .box-header {
        {#margin-top: 30px;#} display: none;
        }


    </style>

    <!-- 子模板的样式表应放在父模板的样式表之后，只有这样才可以在子模板中重定义父模板中的某些样式 -->
    {% block styles %}{% endblock %}

</head>

<body class="hold-transition skin-blue sidebar-mini">

<div class="wrapper">

    <header class="main-header">

        <!-- Logo -->
        <a href="#" class="logo">
            <span class="logo-mini"><b>量化回测交易系统</b></span>
            <span class="logo-lg"><b>量化回测交易系统</b></span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <li class="dropdown messages-menu">
                        <a href="#">
                            <i class="fa  fa-home"></i>
                            <span class="label label-success"></span>
                        </a>
                    </li>
                    <li class="dropdown user user-menu">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <img src="{% static '/dist/img/user2-160x160.jpg' %}" class="user-image" alt="User Image">
                            <span class="hidden-xs">{{ allHtml.loginName }}</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li class="user-header">
                                <img src="{% static '/dist/img/user2-160x160.jpg' %}" class="img-circle"
                                     alt="User Image">
                                <p id="userinfo">
                                    {% rbac_loginUser request %}
                                    <small>PY</small>
                                </p>
                            </li>
                            <li class="user-footer">
                                <div class="pull-left">
                                    <a href="#" class="btn btn-default btn-flat " data-toggle="modal"
                                       data-target="#modal_ModifyPwd">修改密码</a>
                                </div>
                                <div class="pull-right">
                                    <a href="{% url 'Rbac:login' %}" class="btn btn-default btn-flat">退出</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    {#<li>#}
                    {# <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>#}
                    {#</li>#}
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- Sidebar user panel (optional) -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="{% static '/dist/img/user2-160x160.jpg' %}" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    {# <p>{{ allHtml.loginName }}</p>#}
                    <!-- Status -->
                    <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
                </div>
            </div>
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">导航栏</li>
                {% rbac_menu request %}
            </ul>
        </section>
    </aside>
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <div class="modal fade" id="modal_ModifyPwd" data-backdrop="static">
            <div class="modal-dialog" style="width: 600px">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                            <span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title">密码修改</h4>
                    </div>
                    <div class="modal-body" style="padding: 30px;">
                        <div class="box-body">
                            <form class="form-horizontal" id="form_ModifyPwd">
                                {% csrf_token %}
                                <div class="col-xs-12">
                                    <div class="form-group">
                                        <label for="inputEmail3" class="col-sm-3 control-label">原密码</label>
                                        <div class="col-sm-7">
                                            <input type="password" class="form-control" name="oldPwd" placeholder="原密码">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="inputEmail3" class="col-sm-3 control-label">新密码</label>
                                        <div class="col-sm-7">
                                            <input type="password" class="form-control" name="newPwd1"
                                                   placeholder="新密码">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="inputEmail3" class="col-sm-3 control-label">确认密码</label>
                                        <div class="col-sm-7">
                                            <input type="password" class="form-control" name="newPwd2"
                                                   placeholder="确认密码">
                                        </div>
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-default pull-left" data-dismiss="modal">
                                            取消
                                        </button>
                                        <button type="button" class="btn btn-primary" id="btn_ModifyPwd">确认</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--loading模态框-->
        <div class="modal fade loa" data-backdrop="static" id="loading">
            <div><span><img class="loadgif" src="{% static '/bower_components/bootstrap/img/loading.gif' %}"></span>
            </div>
        </div>
        {% block content %}
        {% endblock %}
    </div>
    <!-- Main Footer -->
    {#    <footer class="main-footer">#}
    {#        <!-- To the right -->#}
    {#        <div class="pull-right hidden-xs">#}
    {#        </div>#}
    {#        <!-- Default to the left -->#}
    {#        <strong>Copyright &copy; 2020 <a href="#">Company</a>.</strong> All rights reserved.#}
    {#    </footer>#}
</div>


<script src="{% static '/bower_components/jquery/dist/jquery.min.js' %}"></script>
<script src="{% static '/bower_components/bootstrap/dist/js/bootstrap.min.js' %}"></script>
<script src="{% static '/bower_components/datatables.net/js/jquery.dataTables.min.js' %}"></script>
<script src="{% static '/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js' %}"></script>
<script src="{% static '/plugins/jquery-form/jquery.form.min.js' %}"></script>
<script src="{% static '/plugins/iCheck/icheck.min.js' %}"></script>
<script src="{% static '/plugins/bootstrapValidator/bootstrapValidator.min.js' %}"></script>
<script src="{% static '/plugins/jquery-cookie/jquery.cookie.min.js' %}"></script>
<script src="{% static '/plugins/echart/echarts.min.js' %}"></script>
<script src="{% static '/plugins/bootstrap-dialog/bootstrap-dialog.min.js' %}"></script>
<script src="{% static '/dist/js/adminlte.min.js' %}"></script>
<script src="{% static '/public.js' %}"></script>
<script src="{% static '/datetimepicker/bootstrap-datetimepicker.js' %}"></script>
<script src="{% static '/plugins/timepicker/bootstrap-timepicker.js' %}"></script>
<script src="{% static '/datetimepicker/jszip.min.js' %}"></script>
<script src="{% static '/bootstrap-fileinput-master/js/fileinput.min.js' %}"></script>
{#<link src="{% static '/bootstrap-fileinput-master/css/fileinput.css' %}"></link>#}
<script>

    $(document).ready(function () {
        x = $("#userinfo").text().replace(/\s/g, "")
        console.log(x.length)
        if (x.length == 2) {
            console.log("123")
            window.location.href = "{% url 'Rbac:login' %}";
        }
    });
    {#修改密码#}
    var form = $('#form_ModifyPwd');
    var fields = {
        oldPwd: {
            validators: {
                notEmpty: {
                    message: '原密码不能为空！'
                }
            }
        },
        newPwd1: {
            validators: {
                notEmpty: {
                    message: '新密码不能为空！'
                },
                stringLength: {
                    min: 11,
                    message: '密码长度必须在11位以上'
                },
                regexp: {
                    regexp: /^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[\`\~\!\@\#\$\%\^\&\*\(\)\_\+\-\=\{\}\|\[\]\:\;\'\<\>\?\,\.]).{11,}$/,
                    message: '密码必须由数字、字母、特殊字符组成'
                },
                identical: {
                    field: 'newPwd2',
                    message: '两次密码输入不一致'
                }
            }
        },
        newPwd2: {
            validators: {
                notEmpty: {
                    message: '新密码不能为空！'
                },
                stringLength: {
                    min: 11,
                    message: '密码长度必须在11位以上'
                },
                regexp: {
                    regexp: /^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[\`\~\!\@\#\$\%\^\&\*\(\)\_\+\-\=\{\}\|\[\]\:\;\'\<\>\?\,\.]).{11,}$/,
                    message: '密码必须由数字、字母、特殊字符组成'
                },
                identical: {
                    field: 'newPwd1',
                    message: '两次密码输入不一致'
                }
            }
        },
    };
    var submit = $('#btn_ModifyPwd');
    var url = "{% url 'Rbac:modifyPwd' %}";
    initValidator(form, fields, submit, url);

    //加载模态框
    function loadon() {
        $("#loading").modal('show')
    }

    //加载取消模态框
    function loadoff() {
        $("#loading").modal('hide')
    }


</script>
<link href="{% static '/bootstrap_table/bootstrap-table/dist/bootstrap-table.css' %}" rel="stylesheet">
<script src="{% static '/bootstrap_table/bootstrap-table/dist/bootstrap-table.js' %}"></script>
<script src="{% static '/bootstrap_table/bootstrap-table-export.js' %}"></script>
<script src="{% static '/bootstrap_table/FileSaver.min.js' %}"></script>
<script src="{% static '/bootstrap_table/xlsx.core.min.js' %}"></script>
<script src="{% static '/bootstrap_table/tableExport.js' %}"></script>

<script src="{% static 'bootstrap_table/websocket.js' %}"></script>
<script src="{% static 'bootstrap_table/model.js' %}"></script>
<!---策略模板--->
<script src="{% static '/strategy_templates/stg_templates.js' %}"></script>

<!--导入配置文件-->
<script src="{% static 'config.js' %}"></script>
{% block scripts %}

{% endblock %}
</body>
</html>